@@ -129,19 +129,20 @@ function relative_helmholtz_free_energy(
129
129
temperature:: Union{Float64,Vector,Matrix,Array} ,
130
130
):: Union{Float64,Vector,Matrix,Array}
131
131
return broadcast (
132
- (number_of_links_i, link_length_i, link_stiffness_i, force_i, temperature_i) -> ccall (
133
- (
134
- :physics_single_chain_efjc_thermodynamics_isotensional_asymptotic_alternative_legendre_relative_helmholtz_free_energy ,
135
- string (PROJECT_ROOT, " target/debug/libpolymers" ),
132
+ (number_of_links_i, link_length_i, link_stiffness_i, force_i, temperature_i) ->
133
+ ccall (
134
+ (
135
+ :physics_single_chain_efjc_thermodynamics_isotensional_asymptotic_alternative_legendre_relative_helmholtz_free_energy ,
136
+ string (PROJECT_ROOT, " target/debug/libpolymers" ),
137
+ ),
138
+ Float64,
139
+ (UInt8, Float64, Float64, Float64, Float64),
140
+ number_of_links_i,
141
+ link_length_i,
142
+ link_stiffness_i,
143
+ force_i,
144
+ temperature_i,
136
145
),
137
- Float64,
138
- (UInt8, Float64, Float64, Float64, Float64),
139
- number_of_links_i,
140
- link_length_i,
141
- link_stiffness_i,
142
- force_i,
143
- temperature_i,
144
- ),
145
146
number_of_links,
146
147
link_length,
147
148
link_stiffness,
@@ -280,17 +281,18 @@ function nondimensional_relative_helmholtz_free_energy(
280
281
nondimensional_force:: Union{Float64,Vector,Matrix,Array} ,
281
282
):: Union{Float64,Vector,Matrix,Array}
282
283
return broadcast (
283
- (number_of_links_i, nondimensional_link_stiffness_i, nondimensional_force_i) -> ccall (
284
- (
285
- :physics_single_chain_efjc_thermodynamics_isotensional_asymptotic_alternative_legendre_nondimensional_relative_helmholtz_free_energy ,
286
- string (PROJECT_ROOT, " target/debug/libpolymers" ),
284
+ (number_of_links_i, nondimensional_link_stiffness_i, nondimensional_force_i) ->
285
+ ccall (
286
+ (
287
+ :physics_single_chain_efjc_thermodynamics_isotensional_asymptotic_alternative_legendre_nondimensional_relative_helmholtz_free_energy ,
288
+ string (PROJECT_ROOT, " target/debug/libpolymers" ),
289
+ ),
290
+ Float64,
291
+ (UInt8, Float64, Float64),
292
+ number_of_links_i,
293
+ nondimensional_link_stiffness_i,
294
+ nondimensional_force_i,
287
295
),
288
- Float64,
289
- (UInt8, Float64, Float64),
290
- number_of_links_i,
291
- nondimensional_link_stiffness_i,
292
- nondimensional_force_i,
293
- ),
294
296
number_of_links,
295
297
link_length,
296
298
nondimensional_link_stiffness,
@@ -335,65 +337,65 @@ function EFJC(
335
337
hinge_mass:: Float64 ,
336
338
link_stiffness:: Float64 ,
337
339
)
338
- return EFJC (
339
- number_of_links,
340
- link_length,
341
- hinge_mass,
342
- link_stiffness,
343
- (force, temperature) -> helmholtz_free_energy (
340
+ return EFJC (
344
341
number_of_links,
345
342
link_length,
346
343
hinge_mass,
347
344
link_stiffness,
348
- force,
349
- temperature,
350
- ),
351
- (force, temperature) -> helmholtz_free_energy_per_link (
352
- link_length,
353
- link_stiffness,
354
- hinge_mass,
355
- force,
356
- temperature,
357
- ),
358
- (force, temperature) -> relative_helmholtz_free_energy (
359
- number_of_links,
360
- link_length,
361
- link_stiffness,
362
- force,
363
- temperature,
364
- ),
365
- (force, temperature) -> relative_helmholtz_free_energy_per_link (
366
- link_length,
367
- link_stiffness,
368
- force,
369
- temperature,
370
- ),
371
- (nondimensional_force, temperature) -> nondimensional_helmholtz_free_energy (
372
- number_of_links,
373
- link_length,
374
- hinge_mass,
375
- link_stiffness* link_length^ 2 / BOLTZMANN_CONSTANT/ temperature,
376
- nondimensional_force,
377
- temperature,
378
- ),
379
- (nondimensional_force, temperature) ->
380
- nondimensional_helmholtz_free_energy_per_link (
345
+ (force, temperature) -> helmholtz_free_energy (
346
+ number_of_links,
347
+ link_length,
348
+ hinge_mass,
349
+ link_stiffness,
350
+ force,
351
+ temperature,
352
+ ),
353
+ (force, temperature) -> helmholtz_free_energy_per_link (
354
+ link_length,
355
+ link_stiffness,
356
+ hinge_mass,
357
+ force,
358
+ temperature,
359
+ ),
360
+ (force, temperature) -> relative_helmholtz_free_energy (
361
+ number_of_links,
362
+ link_length,
363
+ link_stiffness,
364
+ force,
365
+ temperature,
366
+ ),
367
+ (force, temperature) -> relative_helmholtz_free_energy_per_link (
368
+ link_length,
369
+ link_stiffness,
370
+ force,
371
+ temperature,
372
+ ),
373
+ (nondimensional_force, temperature) -> nondimensional_helmholtz_free_energy (
374
+ number_of_links,
381
375
link_length,
382
376
hinge_mass,
383
- link_stiffness* link_length^ 2 / BOLTZMANN_CONSTANT/ temperature,
377
+ link_stiffness * link_length^ 2 / BOLTZMANN_CONSTANT / temperature,
384
378
nondimensional_force,
385
379
temperature,
386
380
),
387
- nondimensional_force -> nondimensional_relative_helmholtz_free_energy (
388
- number_of_links,
389
- link_stiffness* link_length^ 2 / BOLTZMANN_CONSTANT/ temperature,
390
- nondimensional_force,
391
- ),
392
- nondimensional_force -> nondimensional_relative_helmholtz_free_energy_per_link (
393
- link_stiffness* link_length^ 2 / BOLTZMANN_CONSTANT/ temperature,
394
- nondimensional_force,
395
- ),
396
- )
381
+ (nondimensional_force, temperature) ->
382
+ nondimensional_helmholtz_free_energy_per_link (
383
+ link_length,
384
+ hinge_mass,
385
+ link_stiffness * link_length^ 2 / BOLTZMANN_CONSTANT / temperature,
386
+ nondimensional_force,
387
+ temperature,
388
+ ),
389
+ nondimensional_force -> nondimensional_relative_helmholtz_free_energy (
390
+ number_of_links,
391
+ link_stiffness * link_length^ 2 / BOLTZMANN_CONSTANT / temperature,
392
+ nondimensional_force,
393
+ ),
394
+ nondimensional_force -> nondimensional_relative_helmholtz_free_energy_per_link (
395
+ link_stiffness * link_length^ 2 / BOLTZMANN_CONSTANT / temperature,
396
+ nondimensional_force,
397
+ ),
398
+ )
397
399
end
398
400
399
401
end
0 commit comments